home *** CD-ROM | disk | FTP | other *** search
Unknown | 1993-01-25 | 4.9 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 b0 09 45 44 49 54 4f | 52 49 41 4c 07 4c 45 54 |...EDITO|RIAL.LET|
|00000010| 54 45 52 53 26 41 53 59 | 4e 43 48 52 4f 4e 4f 55 |TERS&ASY|NCHRONOU|
|00000020| 53 20 52 4f 55 54 49 4e | 45 53 20 4f 4e 20 54 48 |S ROUTIN|ES ON TH|
|00000030| 45 20 4d 41 43 49 4e 54 | 4f 53 48 08 46 69 67 75 |E MACINT|OSH.Figu|
|00000040| 72 65 20 31 00 08 44 45 | 41 44 4c 4f 43 4b 28 44 |re 1..DE|ADLOCK(D|
|00000050| 65 74 65 72 6d 69 6e 69 | 6e 67 20 61 73 79 6e 63 |etermini|ng async|
|00000060| 68 72 6f 6e 6f 75 73 20 | 63 61 6c 6c 20 63 6f 6d |hronous |call com|
|00000070| 70 6c 65 74 69 6f 6e 16 | 50 6f 6c 6c 69 6e 67 20 |pletion.|Polling |
|00000080| 66 6f 72 20 63 6f 6d 70 | 6c 65 74 69 6f 6e 29 46 |for comp|letion)F|
|00000090| 55 4e 43 54 49 4f 4e 20 | 52 45 53 55 4c 54 53 20 |UNCTION |RESULTS |
|000000a0| 41 4e 44 20 46 55 4e 43 | 54 49 4f 4e 20 43 4f 4d |AND FUNC|TION COM|
|000000b0| 50 4c 45 54 49 4f 4e 20 | 19 55 73 69 6e 67 20 43 |PLETION |.Using C|
|000000c0| 6f 6d 70 6c 65 74 69 6f | 6e 20 72 6f 75 74 69 6e |ompletio|n routin|
|000000d0| 65 73 1f 50 50 43 20 54 | 6f 6f 6c 62 6f 78 20 63 |es.PPC T|oolbox c|
|000000e0| 6f 6d 70 6c 65 74 69 6f | 6e 20 72 6f 75 74 69 6e |ompletio|n routin|
|000000f0| 65 73 4b 46 69 6c 65 20 | 4d 61 6e 61 67 65 72 20 |esKFile |Manager |
|00000100| 61 6e 64 20 44 65 76 69 | 63 65 20 4d 61 6e 61 67 |and Devi|ce Manag|
|00000110| 65 72 20 63 6f 6d 70 6c | 65 74 69 6f 6e 20 72 6f |er compl|etion ro|
|00000120| 75 74 69 6e 65 73 20 69 | 6e 20 68 69 67 68 2d 6c |utines i|n high-l|
|00000130| 65 76 65 6c 20 6c 61 6e | 67 75 61 67 65 73 18 54 |evel lan|guages.T|
|00000140| 68 65 20 42 69 67 20 54 | 68 72 65 65 20 54 65 63 |he Big T|hree Tec|
|00000150| 68 6e 69 71 75 65 73 17 | 4f 70 65 72 61 74 69 6e |hniques.|Operatin|
|00000160| 67 20 53 79 73 74 65 6d | 20 51 75 65 75 65 73 1d |g System| Queues.|
|00000170| 52 41 43 45 20 43 4f 4e | 44 49 54 49 4f 4e 53 20 |RACE CON|DITIONS |
|00000180| 41 4e 44 20 4f 53 20 51 | 55 45 55 45 53 0d 43 61 |AND OS Q|UEUES.Ca|
|00000190| 6c 6c 20 43 68 61 69 6e | 69 6e 67 1a 45 78 74 65 |ll Chain|ing.Exte|
|000001a0| 6e 64 69 6e 67 20 70 61 | 72 61 6d 65 74 65 72 20 |nding pa|rameter |
|000001b0| 62 6c 6f 63 6b 73 08 46 | 69 67 75 72 65 20 32 1e |blocks.F|igure 2.|
|000001c0| 50 75 74 74 69 6e 67 20 | 74 68 65 20 42 69 67 20 |Putting |the Big |
|000001d0| 54 68 72 65 65 20 54 6f | 67 65 74 68 65 72 0f 44 |Three To|gether.D|
|000001e0| 65 62 75 67 67 69 6e 67 | 20 48 69 6e 74 73 ff 55 |ebugging| Hints.U|
|000001f0| 73 65 20 44 65 62 75 67 | 67 65 72 20 6f 72 20 44 |se Debug|ger or D|
|00000200| 65 62 75 67 53 74 72 20 | 63 61 6c 6c 73 20 61 6e |ebugStr |calls an|
|00000210| 64 20 61 20 6c 6f 77 2d | 6c 65 76 65 6c 20 64 65 |d a low-|level de|
|00000220| 62 75 67 67 65 72 2e 20 | 42 65 63 61 75 73 65 20 |bugger. |Because |
|00000230| 63 6f 6d 70 6c 65 74 69 | 6f 6e 20 72 6f 75 74 69 |completi|on routi|
|00000240| 6e 65 73 20 61 72 65 20 | 63 61 6c 6c 65 64 20 62 |nes are |called b|
|00000250| 79 20 74 68 65 20 73 79 | 73 74 65 6d 2c 20 75 73 |y the sy|stem, us|
|00000260| 75 61 6c 6c 79 20 61 73 | 20 61 20 72 65 73 75 6c |ually as| a resul|
|00000270| 74 20 6f 66 20 61 6e 20 | 69 6e 74 65 72 72 75 70 |t of an |interrup|
|00000280| 74 2c 20 73 6f 75 72 63 | 65 2d 6c 65 76 65 6c 20 |t, sourc|e-level |
|00000290| 64 65 62 75 67 67 65 72 | 73 20 64 6f 6e d5 74 20 |debugger|s don.t |
|000002a0| 77 6f 72 6b 20 77 69 74 | 68 20 63 6f 6d 70 6c 65 |work wit|h comple|
|000002b0| 74 69 6f 6e 20 72 6f 75 | 74 69 6e 65 73 2e 20 49 |tion rou|tines. I|
|000002c0| 66 20 79 6f 75 d5 72 65 | 20 68 61 76 69 6e 67 20 |f you.re| having |
|000002d0| 70 72 6f 62 6c 65 6d 73 | 20 77 69 74 68 20 61 20 |problems| with a |
|000002e0| 63 6f 6d 70 6c 65 74 69 | 6f 6e 20 72 6f c9 47 4d |completi|on ro.GM|
|000002f0| 61 6b 65 20 73 75 72 65 | 20 70 61 72 61 6d 65 74 |ake sure| paramet|
|00000300| 65 72 20 62 6c 6f 63 6b | 73 20 61 72 65 20 61 72 |er block|s are ar|
|00000310| 6f 75 6e 64 20 66 6f 72 | 20 74 68 65 20 6c 69 66 |ound for| the lif|
|00000320| 65 20 6f 66 20 74 68 65 | 20 61 73 79 6e 63 68 72 |e of the| asynchr|
|00000330| 6f 6e 6f 75 73 20 2b 44 | 6f 6e d5 74 20 72 65 75 |onous +D|on.t reu|
|00000340| 73 65 20 61 20 70 61 72 | 61 6d 65 74 65 72 20 62 |se a par|ameter b|
|00000350| 6c 6f 63 6b 20 74 68 61 | 74 d5 73 20 69 6e 20 75 |lock tha|t.s in u|
|00000360| 73 65 0e 41 76 6f 69 64 | 20 53 79 6e 63 57 61 69 |se.Avoid| SyncWai|
|00000370| 74 1d 4c 65 61 76 65 20 | 61 20 74 72 61 69 6c 20 |t.Leave |a trail |
|00000380| 6f 66 20 62 72 65 61 64 | 20 63 72 75 6d 62 73 23 |of bread| crumbs#|
|00000390| 43 6f 6d 6d 6f 6e 20 50 | 72 6f 62 6c 65 6d 73 20 |Common P|roblems |
|000003a0| 61 6e 64 20 54 68 65 69 | 72 20 53 6f 6c 75 74 69 |and Thei|r Soluti|
|000003b0| 6f 6e 73 26 54 69 6d 65 | 2d 43 6f 6e 73 75 6d 69 |ons&Time|-Consumi|
|000003c0| 6e 67 20 54 61 73 6b 73 | 20 61 74 20 49 6e 74 65 |ng Tasks| at Inte|
|000003d0| 72 72 75 70 74 20 54 69 | 6d 65 1b 57 61 69 74 4e |rrupt Ti|me.WaitN|
|000003e0| 65 78 74 45 76 65 6e 74 | 20 73 6c 65 65 70 20 6c |extEvent| sleep l|
|000003f0| 61 74 65 6e 63 79 31 53 | 74 61 63 6b 20 53 70 61 |atency1S|tack Spa|
|00000400| 63 65 20 61 6e 64 20 43 | 6f 64 65 20 45 78 65 63 |ce and C|ode Exec|
|00000410| 75 74 69 6e 67 20 61 74 | 20 49 6e 74 65 72 72 75 |uting at| Interru|
|00000420| 70 74 20 6c 65 76 65 6c | 26 50 72 6f 62 6c 65 6d |pt level|&Problem|
|00000430| 73 20 77 69 74 68 20 52 | 65 75 73 69 6e 67 20 50 |s with R|eusing P|
|00000440| 61 72 61 6d 65 74 65 72 | 20 42 6c 6f 63 6b 73 15 |arameter| Blocks.|
|00000450| 55 6e 66 6f 72 74 75 6e | 61 74 65 20 63 6f 65 72 |Unfortun|ate coer|
|00000460| 63 69 6f 6e 73 13 55 6e | 66 6f 72 74 75 6e 61 74 |cions.Un|fortunat|
|00000470| 65 20 6f 76 65 72 6c 61 | 70 1e 47 61 72 62 61 67 |e overla|p.Garbag|
|00000480| 65 20 69 6e 20 74 68 65 | 20 70 61 72 61 6d 65 74 |e in the| paramet|
|00000490| 65 72 20 62 6c 6f 63 6b | 0a 43 6f 6d 70 6c 65 74 |er block|.Complet|
|000004a0| 69 6f 6e 13 52 45 43 4f | 4d 4d 45 4e 44 45 44 20 |ion.RECO|MMENDED |
|000004b0| 52 45 41 44 49 4e 47 16 | 53 4f 4d 45 57 48 45 52 |READING.|SOMEWHER|
|000004c0| 45 20 49 4e 20 51 55 49 | 43 4b 54 49 4d 45 2e 49 |E IN QUI|CKTIME.I|
|000004d0| 4e 53 49 44 45 20 51 55 | 49 43 4b 54 49 4d 45 20 |NSIDE QU|ICKTIME |
|000004e0| 41 4e 44 20 43 4f 4d 50 | 4f 4e 45 4e 54 2d 20 42 |AND COMP|ONENT- B|
|000004f0| 41 53 45 44 20 4d 41 4e | 41 47 45 52 53 11 51 75 |ASED MAN|AGERS.Qu|
|00000500| 69 63 6b 54 69 6d 65 20 | 41 2d 54 72 61 70 73 1e |ickTime |A-Traps.|
|00000510| 54 72 61 70 70 69 6e 67 | 20 43 6f 6d 70 69 6c 65 |Trapping| Compile|
|00000520| 64 20 41 70 70 6c 69 63 | 61 74 69 6f 6e 73 17 54 |d Applic|ations.T|
|00000530| 4d 4f 4e 20 50 52 4f 20 | 41 53 53 45 4d 42 4c 45 |MON PRO |ASSEMBLE|
|00000540| 52 20 44 45 4d 4f 08 46 | 69 67 75 72 65 20 31 16 |R DEMO.F|igure 1.|
|00000550| 55 73 69 6e 67 20 27 6d | 78 62 6d 27 20 52 65 73 |Using 'm|xbm' Res|
|00000560| 6f 75 72 63 65 73 19 55 | 73 69 6e 67 20 41 20 54 |ources.U|sing A T|
|00000570| 4d 4f 4e 50 52 4f 20 55 | 73 65 72 20 41 72 65 61 |MONPRO U|ser Area|
|00000580| 18 43 72 65 61 74 69 6e | 67 20 64 65 62 75 67 67 |.Creatin|g debugg|
|00000590| 69 6e 67 20 74 6f 6f 6c | 73 28 53 45 54 54 49 4e |ing tool|s(SETTIN|
|000005a0| 47 20 41 2d 54 52 41 50 | 20 42 52 45 41 4b 53 20 |G A-TRAP| BREAKS |
|000005b0| 6f 6e 20 43 4f 4d 4d 4f | 4e 20 52 4f 55 54 49 4e |on COMMO|N ROUTIN|
|000005c0| 45 73 2c 42 52 45 41 4b | 49 4e 47 20 6f 6e 20 43 |Es,BREAK|ING on C|
|000005d0| 4f 4d 4d 4f 4e 20 52 65 | 73 6f 75 72 63 65 20 4d |OMMON Re|source M|
|000005e0| 61 6e 61 67 65 72 20 52 | 6f 75 74 69 6e 65 73 08 |anager R|outines.|
|000005f0| 46 69 67 75 72 65 20 32 | 2d 42 52 45 41 4b 69 6e |Figure 2|-BREAKin|
|00000600| 67 20 6f 6e 20 43 4f 4d | 4d 4f 4e 20 43 6f 6d 70 |g on COM|MON Comp|
|00000610| 6f 6e 65 6e 74 20 4d 61 | 6e 61 67 65 72 20 52 6f |onent Ma|nager Ro|
|00000620| 75 74 69 6e 65 73 19 64 | 79 6e 61 6d 69 63 20 73 |utines.d|ynamic s|
|00000630| 74 61 74 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |tate inf|ormation|
|00000640| 08 46 69 67 75 72 65 20 | 33 0b 62 6f 74 74 6c 65 |.Figure |3.bottle|
|00000650| 6e 65 63 6b 73 14 67 72 | 61 66 50 6f 72 74 20 42 |necks.gr|afPort B|
|00000660| 6f 74 74 6c 65 6e 65 63 | 6b 73 42 70 61 73 63 61 |ottlenec|ksBpasca|
|00000670| 6c 20 76 6f 69 64 20 6d | 79 54 65 78 74 50 72 6f |l void m|yTextPro|
|00000680| 63 28 73 68 6f 72 74 20 | 62 79 74 65 43 6f 75 6e |c(short |byteCoun|
|00000690| 74 2c 20 50 74 72 20 74 | 65 78 74 42 75 66 2c 20 |t, Ptr t|extBuf, |
|000006a0| 50 6f 69 6e 74 20 6e 75 | 6d 65 72 2c 20 15 63 6f |Point nu|mer, .co|
|000006b0| 6d 70 6f 6e 65 6e 74 20 | 62 6f 74 74 6c 65 6e 65 |mponent |bottlene|
|000006c0| 63 6b 73 48 70 61 73 63 | 61 6c 20 43 6f 6d 70 6f |cksHpasc|al Compo|
|000006d0| 6e 65 6e 74 52 65 73 75 | 6c 74 20 6d 61 69 6e 28 |nentResu|lt main(|
|000006e0| 43 6f 6d 70 6f 6e 65 6e | 74 50 61 72 61 6d 65 74 |Componen|tParamet|
|000006f0| 65 72 73 09 2a 70 61 72 | 61 6d 73 2c 20 48 61 6e |ers.*par|ams, Han|
|00000700| 64 6c 65 20 73 74 6f 72 | 61 67 65 29 19 4f 4c 44 |dle stor|age).OLD|
|00000710| 20 57 4f 52 4c 44 20 4d | 45 45 54 53 20 4e 45 57 | WORLD M|EETS NEW|
|00000720| 20 57 4f 52 4c 44 10 52 | 45 51 55 49 52 45 44 20 | WORLD.R|EQUIRED |
|00000730| 52 45 41 44 49 4e 47 26 | 41 53 59 4e 43 48 52 4f |READING&|ASYNCHRO|
|00000740| 4e 4f 55 53 20 52 4f 55 | 54 49 4e 45 53 20 4f 4e |NOUS ROU|TINES ON|
|00000750| 20 54 48 45 20 4d 41 43 | 49 4e 54 4f 53 48 08 46 | THE MAC|INTOSH.F|
|00000760| 69 67 75 72 65 20 31 00 | 08 44 45 41 44 4c 4f 43 |igure 1.|.DEADLOC|
|00000770| 4b 28 44 65 74 65 72 6d | 69 6e 69 6e 67 20 61 73 |K(Determ|ining as|
|00000780| 79 6e 63 68 72 6f 6e 6f | 75 73 20 63 61 6c 6c 20 |ynchrono|us call |
|00000790| 63 6f 6d 70 6c 65 74 69 | 6f 6e 16 50 6f 6c 6c 69 |completi|on.Polli|
|000007a0| 6e 67 20 66 6f 72 20 63 | 6f 6d 70 6c 65 74 69 6f |ng for c|ompletio|
|000007b0| 6e 29 46 55 4e 43 54 49 | 4f 4e 20 52 45 53 55 4c |n)FUNCTI|ON RESUL|
|000007c0| 54 53 20 41 4e 44 20 46 | 55 4e 43 54 49 4f 4e 20 |TS AND F|UNCTION |
|000007d0| 43 4f 4d 50 4c 45 54 49 | 4f 4e 20 19 55 73 69 6e |COMPLETI|ON .Usin|
|000007e0| 67 20 43 6f 6d 70 6c 65 | 74 69 6f 6e 20 72 6f 75 |g Comple|tion rou|
|000007f0| 74 69 6e 65 73 1f 50 50 | 43 20 54 6f 6f 6c 62 6f |tines.PP|C Toolbo|
|00000800| 78 20 63 6f 6d 70 6c 65 | 74 69 6f 6e 20 72 6f 75 |x comple|tion rou|
|00000810| 74 69 6e 65 73 4b 46 69 | 6c 65 20 4d 61 6e 61 67 |tinesKFi|le Manag|
|00000820| 65 72 20 61 6e 64 20 44 | 65 76 69 63 65 20 4d 61 |er and D|evice Ma|
|00000830| 6e 61 67 65 72 20 63 6f | 6d 70 6c 65 74 69 6f 6e |nager co|mpletion|
|00000840| 20 72 6f 75 74 69 6e 65 | 73 20 69 6e 20 68 69 67 | routine|s in hig|
|00000850| 68 2d 6c 65 76 65 6c 20 | 6c 61 6e 67 75 61 67 65 |h-level |language|
|00000860| 73 18 54 68 65 20 42 69 | 67 20 54 68 72 65 65 20 |s.The Bi|g Three |
|00000870| 54 65 63 68 6e 69 71 75 | 65 73 17 4f 70 65 72 61 |Techniqu|es.Opera|
|00000880| 74 69 6e 67 20 53 79 73 | 74 65 6d 20 51 75 65 75 |ting Sys|tem Queu|
|00000890| 65 73 1d 52 41 43 45 20 | 43 4f 4e 44 49 54 49 4f |es.RACE |CONDITIO|
|000008a0| 4e 53 20 41 4e 44 20 4f | 53 20 51 55 45 55 45 53 |NS AND O|S QUEUES|
|000008b0| 0d 43 61 6c 6c 20 43 68 | 61 69 6e 69 6e 67 1a 45 |.Call Ch|aining.E|
|000008c0| 78 74 65 6e 64 69 6e 67 | 20 70 61 72 61 6d 65 74 |xtending| paramet|
|000008d0| 65 72 20 62 6c 6f 63 6b | 73 08 46 69 67 75 72 65 |er block|s.Figure|
|000008e0| 20 32 1e 50 75 74 74 69 | 6e 67 20 74 68 65 20 42 | 2.Putti|ng the B|
|000008f0| 69 67 20 54 68 72 65 65 | 20 54 6f 67 65 74 68 65 |ig Three| Togethe|
|00000900| 72 0f 44 65 62 75 67 67 | 69 6e 67 20 48 69 6e 74 |r.Debugg|ing Hint|
|00000910| 73 37 55 73 65 20 44 65 | 62 75 67 67 65 72 20 6f |s7Use De|bugger o|
|00000920| 72 20 44 65 62 75 67 53 | 74 72 20 63 61 6c 6c 73 |r DebugS|tr calls|
|00000930| 20 61 6e 64 20 61 20 6c | 6f 77 2d 6c 65 76 65 6c | and a l|ow-level|
|00000940| 20 64 65 62 75 67 67 65 | 72 47 4d 61 6b 65 20 73 | debugge|rGMake s|
|00000950| 75 72 65 20 70 61 72 61 | 6d 65 74 65 72 20 62 6c |ure para|meter bl|
|00000960| 6f 63 6b 73 20 61 72 65 | 20 61 72 6f 75 6e 64 20 |ocks are| around |
|00000970| 66 6f 72 20 74 68 65 20 | 6c 69 66 65 20 6f 66 20 |for the |life of |
|00000980| 74 68 65 20 61 73 79 6e | 63 68 72 6f 6e 6f 75 73 |the asyn|chronous|
|00000990| 20 2b 44 6f 6e d5 74 20 | 72 65 75 73 65 20 61 20 | +Don.t |reuse a |
|000009a0| 70 61 72 61 6d 65 74 65 | 72 20 62 6c 6f 63 6b 20 |paramete|r block |
|000009b0| 74 68 61 74 d5 73 20 69 | 6e 20 75 73 65 0e 41 76 |that.s i|n use.Av|
|000009c0| 6f 69 64 20 53 79 6e 63 | 57 61 69 74 1d 4c 65 61 |oid Sync|Wait.Lea|
|000009d0| 76 65 20 61 20 74 72 61 | 69 6c 20 6f 66 20 62 72 |ve a tra|il of br|
|000009e0| 65 61 64 20 63 72 75 6d | 62 73 23 43 6f 6d 6d 6f |ead crum|bs#Commo|
|000009f0| 6e 20 50 72 6f 62 6c 65 | 6d 73 20 61 6e 64 20 54 |n Proble|ms and T|
|00000a00| 68 65 69 72 20 53 6f 6c | 75 74 69 6f 6e 73 26 54 |heir Sol|utions&T|
|00000a10| 69 6d 65 2d 43 6f 6e 73 | 75 6d 69 6e 67 20 54 61 |ime-Cons|uming Ta|
|00000a20| 73 6b 73 20 61 74 20 49 | 6e 74 65 72 72 75 70 74 |sks at I|nterrupt|
|00000a30| 20 54 69 6d 65 1b 57 61 | 69 74 4e 65 78 74 45 76 | Time.Wa|itNextEv|
|00000a40| 65 6e 74 20 73 6c 65 65 | 70 20 6c 61 74 65 6e 63 |ent slee|p latenc|
|00000a50| 79 31 53 74 61 63 6b 20 | 53 70 61 63 65 20 61 6e |y1Stack |Space an|
|00000a60| 64 20 43 6f 64 65 20 45 | 78 65 63 75 74 69 6e 67 |d Code E|xecuting|
|00000a70| 20 61 74 20 49 6e 74 65 | 72 72 75 70 74 20 6c 65 | at Inte|rrupt le|
|00000a80| 76 65 6c 26 50 72 6f 62 | 6c 65 6d 73 20 77 69 74 |vel&Prob|lems wit|
|00000a90| 68 20 52 65 75 73 69 6e | 67 20 50 61 72 61 6d 65 |h Reusin|g Parame|
|00000aa0| 74 65 72 20 42 6c 6f 63 | 6b 73 15 55 6e 66 6f 72 |ter Bloc|ks.Unfor|
|00000ab0| 74 75 6e 61 74 65 20 63 | 6f 65 72 63 69 6f 6e 73 |tunate c|oercions|
|00000ac0| 13 55 6e 66 6f 72 74 75 | 6e 61 74 65 20 6f 76 65 |.Unfortu|nate ove|
|00000ad0| 72 6c 61 70 1e 47 61 72 | 62 61 67 65 20 69 6e 20 |rlap.Gar|bage in |
|00000ae0| 74 68 65 20 70 61 72 61 | 6d 65 74 65 72 20 62 6c |the para|meter bl|
|00000af0| 6f 63 6b 0a 43 6f 6d 70 | 6c 65 74 69 6f 6e 13 52 |ock.Comp|letion.R|
|00000b00| 45 43 4f 4d 4d 45 4e 44 | 45 44 20 52 45 41 44 49 |ECOMMEND|ED READI|
|00000b10| 4e 47 0b 50 52 49 4e 54 | 20 48 49 4e 54 53 0a 52 |NG.PRINT| HINTS.R|
|00000b20| 45 46 45 52 45 4e 43 45 | 53 35 4d 41 43 49 4e 54 |EFERENCE|S5MACINT|
|00000b30| 4f 53 48 20 44 45 42 55 | 47 47 49 4e 47 3a 20 54 |OSH DEBU|GGING: T|
|00000b40| 48 45 20 42 45 4c 4c 59 | 20 4f 46 20 54 48 45 20 |HE BELLY| OF THE |
|00000b50| 42 45 41 53 54 20 52 45 | 56 49 53 49 54 45 44 0e |BEAST RE|VISITED.|
|00000b60| 44 6f 75 62 6c 65 20 54 | 72 6f 75 62 6c 65 08 46 |Double T|rouble.F|
|00000b70| 69 67 75 72 65 20 31 10 | 44 69 73 70 6f 73 65 20 |igure 1.|Dispose |
|00000b80| 52 65 73 6f 75 72 63 65 | 04 42 4c 41 54 0d 73 6d |Resource|.BLAT.sm|
|00000b90| 61 72 74 20 46 72 69 65 | 6e 64 73 0a 54 68 61 74 |art Frie|nds.That|
|00000ba0| d5 73 20 69 74 21 0f 46 | 55 52 54 48 45 52 20 52 |.s it!.F|URTHER R|
|00000bb0| 45 41 44 49 4e 47 15 54 | 48 45 20 56 45 54 45 52 |EADING.T|HE VETER|
|00000bc0| 41 4e 20 4e 45 4f 50 48 | 59 54 45 20 13 52 45 43 |AN NEOPH|YTE .REC|
|00000bd0| 4f 4d 4d 45 4e 44 45 44 | 20 52 45 41 44 49 4e 47 |OMMENDED| READING|
|00000be0| 1c 41 44 56 45 4e 54 55 | 52 45 53 20 49 4e 20 43 |.ADVENTU|RES IN C|
|00000bf0| 4f 4c 4f 52 20 50 52 49 | 4e 54 49 4e 47 2c 74 68 |OLOR PRI|NTING,th|
|00000c00| 65 20 d2 6f 6e 65 20 73 | 69 7a 65 20 66 69 74 73 |e .one s|ize fits|
|00000c10| 20 61 6c 6c d3 20 61 70 | 70 72 6f 61 63 68 3a 20 | all. ap|proach: |
|00000c20| 41 20 42 61 64 20 49 64 | 65 61 24 74 68 65 20 70 |A Bad Id|ea$the p|
|00000c30| 6f 73 73 69 62 6c 65 20 | 70 72 69 6e 74 69 6e 67 |ossible |printing|
|00000c40| 20 63 6f 6e 66 69 67 75 | 72 61 74 69 6f 6e 73 36 | configu|rations6|
|00000c50| 61 62 6f 75 74 20 70 72 | 69 6e 74 65 72 20 64 72 |about pr|inter dr|
|00000c60| 69 76 65 72 20 70 6f 72 | 74 73 20 61 6e 64 20 63 |iver por|ts and c|
|00000c70| 6f 6c 6f 72 20 71 75 69 | 63 6b 64 72 61 77 20 73 |olor qui|ckdraw s|
|00000c80| 75 70 70 6f 72 74 28 54 | 48 45 20 53 54 4f 52 59 |upport(T|HE STORY|
|00000c90| 20 42 45 48 49 4e 44 20 | 43 4f 4c 4f 52 20 51 55 | BEHIND |COLOR QU|
|00000ca0| 49 43 4b 44 52 41 57 20 | 53 55 50 50 4f 52 54 13 |ICKDRAW |SUPPORT.|
|00000cb0| 54 68 65 20 70 72 6f 62 | 6c 65 6d 20 61 74 20 68 |The prob|lem at h|
|00000cc0| 61 6e 64 22 62 61 6e 64 | 69 6e 67 20 74 68 65 20 |and"band|ing the |
|00000cd0| 69 6d 61 67 65 20 74 68 | 72 6f 75 67 68 20 61 20 |image th|rough a |
|00000ce0| 67 77 6f 72 6c 64 2a 4f | 66 20 63 6f 6c 6f 72 20 |gworld*O|f color |
|00000cf0| 74 61 62 6c 65 73 20 61 | 6e 64 20 74 68 65 20 4c |tables a|nd the L|
|00000d00| 61 73 65 72 57 72 69 74 | 65 72 20 44 72 69 76 65 |aserWrit|er Drive|
|00000d10| 72 08 46 69 67 75 72 65 | 20 31 24 50 72 69 6e 74 |r.Figure| 1$Print|
|00000d20| 69 6e 67 20 69 6e 20 63 | 6f 6c 6f 72 20 6f 6e 20 |ing in c|olor on |
|00000d30| 74 68 65 20 69 6d 61 67 | 65 77 72 69 74 65 72 08 |the imag|ewriter.|
|00000d40| 46 69 67 75 72 65 20 32 | 16 4d 61 6b 69 6e 67 20 |Figure 2|.Making |
|00000d50| 74 68 65 20 73 65 70 61 | 72 61 74 69 6f 6e 73 07 |the sepa|rations.|
|00000d60| 67 6f 74 63 68 61 73 08 | 46 69 67 75 72 65 20 33 |gotchas.|Figure 3|
|00000d70| 1b 50 72 69 6e 74 69 6e | 67 20 69 6e 20 42 6c 61 |.Printin|g in Bla|
|00000d80| 63 6b 20 61 6e 64 20 57 | 68 69 74 65 12 73 65 74 |ck and W|hite.set|
|00000d90| 74 69 6e 67 20 72 65 73 | 6f 6c 75 74 69 6f 6e 15 |ting res|olution.|
|00000da0| 54 68 65 20 44 69 74 68 | 65 72 43 6f 70 79 20 6d |The Dith|erCopy m|
|00000db0| 65 74 68 6f 64 08 46 69 | 67 75 72 65 20 34 1a 54 |ethod.Fi|gure 4.T|
|00000dc0| 68 65 20 d2 54 72 75 65 | d3 20 48 61 6c 66 74 6f |he .True|. Halfto|
|00000dd0| 6e 65 20 6d 65 74 68 6f | 64 21 54 68 65 20 4c 61 |ne metho|d!The La|
|00000de0| 7a 79 20 70 65 72 73 6f | 6e d5 73 20 48 61 6c 66 |zy perso|n.s Half|
|00000df0| 74 6f 6e 65 20 6d 65 74 | 68 6f 64 08 46 69 67 75 |tone met|hod.Figu|
|00000e00| 72 65 20 35 08 46 69 67 | 75 72 65 20 36 24 44 65 |re 5.Fig|ure 6$De|
|00000e10| 74 65 63 74 69 6e 67 20 | 74 68 65 20 50 72 69 6e |tecting |the Prin|
|00000e20| 74 69 6e 67 20 43 6f 6e | 66 69 67 75 72 61 74 69 |ting Con|figurati|
|00000e30| 6f 6e 08 46 69 67 75 72 | 65 20 37 25 44 6f 20 77 |on.Figur|e 7%Do w|
|00000e40| 65 20 68 61 76 65 20 61 | 20 43 47 72 61 66 50 6f |e have a| CGrafPo|
|00000e50| 72 74 20 6f 72 20 61 20 | 47 72 61 66 50 6f 72 74 |rt or a |GrafPort|
|00000e60| 3f 26 49 66 20 61 20 47 | 72 61 66 50 6f 72 74 2c |?&If a G|rafPort,|
|00000e70| 20 69 73 20 74 68 69 73 | 20 61 6e 20 49 6d 61 67 | is this| an Imag|
|00000e80| 65 57 72 69 74 65 72 3f | 2f 49 66 20 61 6e 20 69 |eWriter?|/If an i|
|00000e90| 6d 61 67 65 77 72 69 74 | 65 72 2c 20 69 73 20 61 |magewrit|er, is a|
|00000ea0| 20 63 6f 6c 6f 72 20 72 | 69 62 62 6f 6e 20 69 6e | color r|ibbon in|
|00000eb0| 73 74 61 6c 6c 65 64 3f | 17 50 75 74 74 69 6e 67 |stalled?|.Putting|
|00000ec0| 20 49 74 20 61 6c 6c 20 | 74 6f 67 65 74 68 65 72 | It all |together|
|00000ed0| 0a 4c 61 73 74 20 77 6f | 72 64 73 0f 52 45 4c 41 |.Last wo|rds.RELA|
|00000ee0| 54 45 44 20 52 45 41 44 | 49 4e 47 12 47 52 41 50 |TED READ|ING.GRAP|
|00000ef0| 48 49 43 41 4c 20 54 52 | 55 46 46 6c 65 53 28 57 |HICAL TR|UFFleS(W|
|00000f00| 68 61 74 20 68 61 70 70 | 65 6e 73 20 77 68 65 6e |hat happ|ens when|
|00000f10| 20 61 20 70 61 6c 65 74 | 74 65 20 69 73 20 61 63 | a palet|te is ac|
|00000f20| 74 69 76 61 74 65 64 0b | 70 6d 43 6f 75 72 74 65 |tivated.|pmCourte|
|00000f30| 6f 75 73 0a 70 6d 54 6f | 6c 65 72 61 6e 74 08 46 |ous.pmTo|lerant.F|
|00000f40| 69 67 75 72 65 20 31 0a | 70 6d 41 6e 69 6d 61 74 |igure 1.|pmAnimat|
|00000f50| 65 64 0a 70 6d 45 78 70 | 6c 69 63 69 74 28 41 72 |ed.pmExp|licit(Ar|
|00000f60| 65 20 62 6c 61 63 6b 20 | 61 6e 64 20 77 68 69 74 |e black |and whit|
|00000f70| 65 20 6e 65 65 64 65 64 | 20 69 6e 20 61 20 70 61 |e needed| in a pa|
|00000f80| 6c 65 74 74 65 3f 31 53 | 61 6d 65 20 6e 75 6d 62 |lette?1S|ame numb|
|00000f90| 65 72 20 6f 66 20 65 6e | 74 72 69 65 73 20 69 6e |er of en|tries in|
|00000fa0| 20 70 61 6c 65 74 74 65 | 20 61 6e 64 20 63 6f 6c | palette| and col|
|00000fb0| 6f 72 20 74 61 62 6c 65 | 08 46 69 67 75 72 65 20 |or table|.Figure |
|00000fc0| 32 08 46 69 67 75 72 65 | 20 33 1c 46 65 77 65 72 |2.Figure| 3.Fewer|
|00000fd0| 20 65 6e 74 72 69 65 73 | 20 69 6e 20 74 68 65 20 | entries| in the |
|00000fe0| 70 61 6c 65 74 74 65 08 | 46 69 67 75 72 65 20 34 |palette.|Figure 4|
|00000ff0| 08 46 69 67 75 72 65 20 | 35 2b 77 68 65 72 65 20 |.Figure |5+where |
|00001000| 74 6f 20 70 75 74 20 62 | 6c 61 63 6b 20 41 4e 44 |to put b|lack AND|
|00001010| 20 77 68 69 74 65 20 69 | 6e 20 74 68 65 20 70 61 | white i|n the pa|
|00001020| 6c 65 74 74 65 08 46 69 | 67 75 72 65 20 36 0d 4f |lette.Fi|gure 6.O|
|00001030| 6e 65 20 4c 61 73 74 20 | 57 6f 72 64 27 44 45 56 |ne Last |Word'DEV|
|00001040| 49 43 45 4c 4f 4f 50 20 | 4d 45 45 54 53 20 54 48 |ICELOOP |MEETS TH|
|00001050| 45 20 49 4e 54 45 52 46 | 41 43 45 20 44 45 53 49 |E INTERF|ACE DESI|
|00001060| 47 4e 45 52 18 44 65 76 | 69 63 65 4c 6f 6f 70 20 |GNER.Dev|iceLoop |
|00001070| 74 6f 20 74 68 65 20 52 | 65 73 63 75 65 ff 44 65 |to the R|escue.De|
|00001080| 76 69 63 65 4c 6f 6f 70 | 20 77 6f 72 6b 73 20 6c |viceLoop| works l|
|00001090| 69 6b 65 20 74 68 69 73 | 3a 20 45 61 63 68 20 74 |ike this|: Each t|
|000010a0| 69 6d 65 20 79 6f 75 72 | 20 64 72 61 77 69 6e 67 |ime your| drawing|
|000010b0| 20 72 6f 75 74 69 6e 65 | 20 69 73 20 63 61 6c 6c | routine| is call|
|000010c0| 65 64 2c 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |ed, the |current |
|000010d0| 70 6f 72 74 d5 73 20 76 | 69 73 52 67 6e 20 77 69 |port.s v|isRgn wi|
|000010e0| 6c 6c 20 68 61 76 65 20 | 62 65 65 6e 20 73 65 74 |ll have |been set|
|000010f0| 20 74 6f 20 74 68 65 20 | 69 6e 74 65 72 73 65 63 | to the |intersec|
|00001100| 74 69 6f 6e 20 6f 66 20 | 79 6f 75 72 20 64 72 61 |tion of |your dra|
|00001110| 77 69 6e 67 20 72 65 67 | 69 6f 6e 20 61 6e 64 20 |wing reg|ion and |
|00001120| 73 6f 6d 65 20 73 63 72 | 65 65 6e 20 64 65 76 69 |some scr|een devi|
|00001130| 63 65 2e 20 44 65 76 69 | 63 65 4c 6f 6f 70 20 70 |ce. Devi|ceLoop p|
|00001140| 61 73 73 65 73 20 74 68 | 65 20 64 72 61 77 69 6e |asses th|e drawin|
|00001150| 67 20 63 68 61 72 61 63 | 74 65 72 69 73 74 69 63 |g charac|teristic|
|00001160| 73 20 6f 66 20 74 68 65 | 20 70 61 72 74 69 63 75 |s of the| particu|
|00001170| 6c 61 72 20 73 63 72 65 | 65 6e 20 69 c9 2c 75 73 |lar scre|en i.,us|
|00001180| 69 6e 67 20 44 65 76 69 | 63 65 4c 6f 6f 70 20 69 |ing Devi|ceLoop i|
|00001190| 6e 20 61 6e 20 6f 62 6a | 65 63 74 2d 6f 72 69 65 |n an obj|ect-orie|
|000011a0| 6e 74 65 64 20 77 6f 72 | 6c 64 08 46 69 67 75 72 |nted wor|ld.Figur|
|000011b0| 65 20 31 08 46 69 67 75 | 72 65 20 32 0a 41 6e 20 |e 1.Figu|re 2.An |
|000011c0| 45 78 61 6d 70 6c 65 08 | 46 69 67 75 72 65 20 33 |Example.|Figure 3|
|000011d0| 0a 53 75 6d 6d 69 6e 67 | 20 55 70 10 4d 41 43 49 |.Summing| Up.MACI|
|000011e0| 4e 54 4f 53 48 20 51 20 | 26 20 41 20 18 4b 4f 4e |NTOSH Q |& A .KON|
|000011f0| 20 26 20 42 41 4c d5 53 | 20 50 55 5a 5a 4c 45 20 | & BAL.S| PUZZLE |
|00001200| 50 41 47 45 20 05 49 4e | 44 45 58 1a 57 41 4e 54 |PAGE .IN|DEX.WANT|
|00001210| 20 54 4f 20 57 52 49 54 | 45 20 46 4f 52 20 64 65 | TO WRIT|E FOR de|
|00001220| 76 65 6c 6f 70 3f 0d 57 | 48 41 54 20 54 4f 20 57 |velop?.W|HAT TO W|
|00001230| 52 49 54 45 19 57 48 4f | 20 41 4e 44 20 57 48 41 |RITE.WHO| AND WHA|
|00001240| 54 20 43 41 4e 20 48 45 | 4c 50 20 59 4f 55 0f 57 |T CAN HE|LP YOU.W|
|00001250| 48 41 54 20 54 4f 20 44 | 4f 20 4e 45 58 54 10 48 |HAT TO D|O NEXT.H|
|00001260| 4f 57 27 52 45 20 57 45 | 20 44 4f 49 4e 47 3f 3b |OW'RE WE| DOING?;|
|00001270| 57 41 4e 54 20 54 4f 20 | 53 55 42 53 43 52 49 42 |WANT TO |SUBSCRIB|
|00001280| 45 3f 20 43 48 41 4e 47 | 45 20 4f 46 20 41 44 44 |E? CHANG|E OF ADD|
|00001290| 52 45 53 53 3f 20 53 55 | 42 53 43 52 49 50 54 49 |RESS? SU|BSCRIPTI|
|000012a0| 4f 4e 20 51 55 45 52 49 | 45 53 3f 1a 57 41 4e 54 |ON QUERI|ES?.WANT|
|000012b0| 20 54 4f 20 57 52 49 54 | 45 20 46 4f 52 20 64 65 | TO WRIT|E FOR de|
|000012c0| 76 65 6c 6f 70 3f 16 42 | 41 43 4b 20 49 53 53 55 |velop?.B|ACK ISSU|
|000012d0| 45 53 20 4f 46 20 64 65 | 76 65 6c 6f 70 10 48 4f |ES OF de|velop.HO|
|000012e0| 57 27 52 45 20 57 45 20 | 44 4f 49 4e 47 3f 3b 57 |W'RE WE |DOING?;W|
|000012f0| 41 4e 54 20 54 4f 20 53 | 55 42 53 43 52 49 42 45 |ANT TO S|UBSCRIBE|
|00001300| 3f 20 43 48 41 4e 47 45 | 20 4f 46 20 41 44 44 52 |? CHANGE| OF ADDR|
|00001310| 45 53 53 3f 20 53 55 42 | 53 43 52 49 50 54 49 4f |ESS? SUB|SCRIPTIO|
|00001320| 4e 20 51 55 45 52 49 45 | 53 3f 1a 57 41 4e 54 20 |N QUERIE|S?.WANT |
|00001330| 54 4f 20 57 52 49 54 45 | 20 46 4f 52 20 64 65 76 |TO WRITE| FOR dev|
|00001340| 65 6c 6f 70 3f 16 42 41 | 43 4b 20 49 53 53 55 45 |elop?.BA|CK ISSUE|
|00001350| 53 20 4f 46 20 64 65 76 | 65 6c 6f 70 1d 53 75 62 |S OF dev|elop.Sub|
|00001360| 73 63 72 69 62 65 20 74 | 6f 20 70 72 69 6e 74 65 |scribe t|o printe|
|00001370| 64 20 64 65 76 65 6c 6f | 70 20 14 53 75 62 73 63 |d develo|p .Subsc|
|00001380| 72 69 62 65 20 26 20 53 | 61 76 65 20 32 35 25 09 |ribe & S|ave 25%.|
|00001390| 52 45 53 4f 55 52 43 45 | 53 |RESOURCE|S |
+--------+-------------------------+-------------------------+--------+--------+